package com.mes_for_xxxxxx.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物料分类表，存储物料分类信息
 * </p>
 *
 * @author 179005
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("materialtype")
@ApiModel(value="Materialtype对象", description="物料分类表，存储物料分类信息")
public class Materialtype implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类ID，主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "分类名称")
    private String category;

    @ApiModelProperty(value = "排序，数值越小排序越靠前")
    private Integer order;

    @ApiModelProperty(value = "分类描述，可选字段")
    private String description;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
